import { createStore } from 'redux'
import reducers from './reducers' // 要合并的 reducers
import { composeWithDevTools } from 'redux-devtools-extension';

// console.log(process.env.NODE_ENV, '-------------');

const store =
    process.env.NODE_ENV == 'development' // 进程管理
        ? createStore(reducers, composeWithDevTools())
        : createStore(reducers);
// 开发 要redux可视化,发布阶段redux不需要给用户,不需要就不执行

export default store;